//---------------------------------------------------------------------------
#ifndef DPCnsPagH
#define DPCnsPagH

//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "DialPad.h"
#include "PHDS.h"
#include <ExtCtrls.hpp>
#include <Buttons.hpp>
#include "PHEdit.h"
#include "PHLabel.h"
#include "PHGridEd.h"
#include <Grids.hpp>
#include "PHCheck.h"
#include "DIALPAD.h"

//---------------------------------------------------------------------------
class TDPCnsPag1 : public TDiPad
{
__published:  // IDE-managed Components
  TBitBtn*  BitBtn1;
  TBitBtn*  BitBtn3;
  PHLabel*  PHLabel1;
  PHEdit*  PHEdit1;
  PHGridEdit*  PHGridEdit1;
  PHDataSource*  DSPag;
  TBitBtn*  BitBtn2;
  PHLabel*  PHLabel2;
  PHEdit*  PHEdit2;
  PHLabel*  PHLabel3;
  PHEdit*  PHEdit3;
 PHCheckBox *PHCheckBox1;
  void __fastcall BitBtn3Click( TObject* Sender );
  void __fastcall DSPagAfterOpen( TObject* Sender );
  void __fastcall BitBtn1Click( TObject* Sender );
  void __fastcall PHEdit1Change( TObject* Sender );
  void __fastcall PHEdit2Change( TObject* Sender );
  void __fastcall PHEdit3Change( TObject* Sender );
  void __fastcall FormShow( TObject* Sender );
  void __fastcall PHGridEdit1DblClick( TObject* Sender );
  void __fastcall FormClose( TObject* Sender, TCloseAction& Action );
  void __fastcall PHGridEdit1KeyDown( TObject* Sender, WORD& Key, TShiftState Shift );
  void __fastcall PHGridEdit1DrawGridCell( int Row, int Col, TColor&  CorTexto, TColor&  CorFundo,
                                           bool&  AplicarCoresSelecao, PHDataSource*  PHDS,
                                           AnsiString&  Conteudo );
 void __fastcall PHCheckBox1Click(TObject *Sender);
private:  // User declarations
  void __fastcall LimpaGrid( void );
  TStringList*  MovForn;
  class MOVFORN : TObject
  { public: AnsiString Fornecedor;
    int Data;
    AnsiString Historico;
    int Vencimento;
    int Lancamento;
    double Valor;
  }*MF;
  AnsiString GE;

public:  // User declarations
  __fastcall TDPCnsPag1( TComponent* Owner );
  void __fastcall Processamento( TObject* Sender );

  struct PAGAR*  Pag;
  bool Alterar;
  int CodigoAlterar;
  UINT DataFinal;
  int Vencidas;
  int Vencendo;
  bool MostraResumo;
};

//---------------------------------------------------------------------------
extern PACKAGE TDPCnsPag1*  DPCnsPag1;

//---------------------------------------------------------------------------
#endif

